import org.junit.jupiter.api.Test;

public class StringBuilder判断回文串 {

    @Test
    public void test(){
        String s="12345";
        StringBuilder builder = new StringBuilder(s);
        String toString = builder.reverse().toString();
        if (s.equals(toString)){
            System.out.println("yes");
        }
    }
}
